<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
        <link rel="stylesheet" href="./bootstrap.css">
        <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
        <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <script src="./bootstrap-paginator.min.js"></script>
        <style>
        li{
            cursor: pointer;
        }
        </style>
</head>
<body>
    <ul class="pagination"></ul>
    <script type='text/javascript'>
        var options = {
            bootstrapMajorVersion:3,//如果使用的是bootstrap 2的样式，但这样会报错，因为我们当前的bootstrap.js版本就是3.0，所以这一行必须要写
            size:'large',//mini small normal large
            currentPage: 3,//当前是第3页
            totalPages: 10,//总共10页
            onPageClicked: function (event, originalEvent, type, page) {
                console.log('你当前选择的是第'+page+'页');
            }
        }

        $('.pagination').bootstrapPaginator(options);
    </script>
</body>
</html>